package com.passive.lock.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.passive.lock.model.po.TUser;
import com.passive.lock.utils.JsonUtils;
@Controller
@RequestMapping("")
public class HomeController extends BaseController{
	/**
	 * 首页
	 *
	 * @param model
	 * @returns
	 */
	@RequestMapping("/home")
	public String home(Model model) {
		
		this.setModelandView(model);
		TUser user = new TUser();
		user.setAccount("zhangsan11");
		model.addAttribute("userJson", JsonUtils.toJson(user));
		return "/pages/ucenter/profile";
	}
}
